Zenwsreg returned the following error code: 2
I have imaged a lab from a workstation that is registered, but I cannot
register any of the imaged lab workstations because of the above error
code. I cannot locate the error code on the internet or Novell's support
site. Any ideas on how to remove the error on the imaged computers?
On Tue, 22 Mar 2005 18:20:29 GMT, [email protected] wrote:
> Any ideas on how to remove the error on the imaged computers?
HKLM/Software/Novell/zenworks/zenwsreg/Loglevel = 2 (String Value) which
will create a log file in c:\program files\novell\zenworks
Marcus Breiden
Please change -- to - to mail me.
The content of this mail is my private and personal opinion.
http://www.edu-magic.net
Similar Messages
-
Zenwsreg returned the following error code: 404
L.S.
I'm having problems importing workstations. I've already configured a
number of networks, and only on this one I'm having problems.
The problem in short:
Workstations don't get imported. On the prompt I get:
Zenwsreg returned the following error code: 404
The problem more elaborate:
The network:
Netware 6.0 SP5
Zfd 4.01 SP6
Workstation
XP
Tree:
I would like to import workstations is a separate container.
I made a server policy package, in Policies, Netware I defined a
workstation import policy, In this policy I put containers and in
platform, and in platform general I put allow importing, selected
container, one of the containers I defined earlier.
Still I get:
Error on the XP-DOS prompt:
Zenwsreg returned the following error code: 404
Then I put logging on. I got this error line:
Error line in
Leaving HTTPUtil::SendMessage, returning 404
Any help?
Thanks
(There is no one at [email protected])
Complete zenwsreg.log:
Friday, December 02, 2005 10:29:25 -- -- Entering ZENWSREGRegister
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
ZenLiteTree::ZenLiteTree()
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
ZenLiteTree::ZenLiteTree()
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
ZenLiteTree::InitZENContextIfNeeded
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- About to call
ZENContextInit(ptr, REMADM)
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
ZENContextInit
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Returned from
ZENContextInit(<REMADM><2><switact.rsg1><0>, REMADM, 1)
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Leaving
ZenLiteTree::InitZENContextIfNeeded, returning 1
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
ZenLiteTree::ZenLiteTree(zenContext)
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Leaving
ZenLiteTree::ZenLiteTree(zenContext)
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
NDSTree::WhoAmI()
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- WhoAmI()
returning switact.rsg1.
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Leaving
NDSTree::WhoAmI()
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
NDSTree::GetTreeName()
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister --
NDSTree::GetTreeName() returning REMADM.
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
NDSTree::GetTreeName()
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
Registrar::Register
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Created
Mutex.
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Got Mutex.
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
Registrar::Update
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Leaving
Registrar::Update, returning 1
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
Registrar::Import
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
GenerateImportDoc
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- User Tree =
<REMADM>
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- User DN =
<switact.rsg1>
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Login count =
<1>
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
ZenLiteTree::ZenLiteTree()
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
ZenLiteTree::ZenLiteTree()
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- ConnType = 2
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Encountered
Winsock error 4294967295 when trying to scan the IPX address.
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
ZenLiteTree::ZenLiteTree()
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
ZenLiteTree::ZenLiteTree()
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- ConnType = 2
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Leaving
GenerateImportDoc
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Entering
HTTPUtil::SendMessage
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- HTTP server =
zenwsimport
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Loaded
wininet.dll
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- About to
create an HTTP connection.
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Connecting to
server <zenwsimport> port 8039.
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- hConnect =
13369352
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- hRequest =
13369356
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- Finished
opening request. hRequest = cc000c.
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- About to send
the following request:
Friday, December 02, 2005 10:29:25 -- ZENWSREGRegister -- <?xml
version="1.0" encoding="UTF-16LE"?>
<new_ws>
<computer>DAVINCI-A750EDC</computer>
<cpu>PENTIUM 4</cpu>
<dns>davinci-a750edc.adm.noa.davinci.local</dns>
<subnet_mask>255.255.255.0</subnet_mask>
<ip>192.168.30.41</ip>
<ipx></ipx>
<mac>00:13:20:83:25:66</mac>
<os>WINXP (5.1 Service Pack 2)</os>
<server>FS_NOA_ADM1</server>
<user_tree>REMADM</user_tree>
<user_dn>switact.rsg1</user_dn>
<login_count>1</login_count>
<auditing_version>4.0.1.53</auditing_version>
</new_ws>
Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- Last error =
12029
Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- Error: Kan
geen verbinding maken met de server
Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- Leaving
HTTPUtil::SendMessage, returning 12029
Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- Entering
HTTPUtil::SendMessage
Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- HTTP server =
zfd_mts
Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- Loaded
novinet.dll
Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- About to
create an HTTP connection.
Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister --
InternetSetOption returned 1
Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- Connecting to
server <zfd_mts> port 80.
Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- hConnect =
33619969
Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- hRequest =
50397185
Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- Finished
opening request. hRequest = 3010001.
Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- About to send
the following request:
Friday, December 02, 2005 10:29:26 -- ZENWSREGRegister -- <?xml
version="1.0" encoding="UTF-16LE"?>
<new_ws>
<computer>DAVINCI-A750EDC</computer>
<cpu>PENTIUM 4</cpu>
<dns>davinci-a750edc.adm.noa.davinci.local</dns>
<subnet_mask>255.255.255.0</subnet_mask>
<ip>192.168.30.41</ip>
<ipx></ipx>
<mac>00:13:20:83:25:66</mac>
<os>WINXP (5.1 Service Pack 2)</os>
<server>FS_NOA_ADM1</server>
<user_tree>REMADM</user_tree>
<user_dn>switact.rsg1</user_dn>
<login_count>1</login_count>
<auditing_version>4.0.1.53</auditing_version>
</new_ws>
Friday, December 02, 2005 10:29:27 -- ZENWSREGRegister -- Finished
sending request. Result = 1
Friday, December 02, 2005 10:29:27 -- ZENWSREGRegister -- Leaving
HTTPUtil::SendMessage, returning 404
Friday, December 02, 2005 10:29:27 -- ZENWSREGRegister -- Entering
Registrar::Import
Friday, December 02, 2005 10:29:27 -- ZENWSREGRegister -- Import
failed. Error: 404
Friday, December 02, 2005 10:29:27 -- ZENWSREGRegister -- Released
Mutex.
Friday, December 02, 2005 10:29:27 -- ZENWSREGRegister -- Leaving
Registrar::Register, returning 404
Friday, December 02, 2005 10:29:27 -- ZENWSREGRegister -- Leaving
ZENWSREGRegister, returning 404L.S.
Thanks. Problem solved. For who wants to know, read on
> ok... the zenwsimport dns is not resolved..
Aargh! This is "by design" in my workstation deployment strategie .....
but only up to some point. I was forced to troubleshoot a not very well
deployed image (when will people read my instructions).
The workstation at this state had a line in the hosts file to prevent
registring the workstation. This should be deleted in the final state
of the workstation but hadn't.
>
> that's why he is going for the middletier server..
>
> from where the 404 is comming from..
>
Well, i'll read that one as soon as I need this.
> troubleshooting Middle Tier authentication
> http://support.novell.com/cgi-bin/se...?/10073537.htm
> --
>
Thomas Roes
there is no one at [email protected]
www dot switact dot nl (not yet a very mature site) -
ZWSReg returned the following error code: 2
We've been forced to start using the zen4 because the 3.2 version
suddenly
stopped working, but when we start zwsreg.exe it exits with error code
2 and
doesnt create anything.
The only way i can get it to make a new workstation is by using
the -zenimportserver none and either specifying a custom new object or
by
specifying the policy, which messes up also by not naming the
workstation
propperly.
We've got it set up with Username-OS-Mac in the users container, when
i
specify the policy it generates the object with UsernameMac, it does
however
put it in the user container.
I also tried getting some logfiles in the workstations but its not
generating any, even after adding those registry keys mentioned in
TID10068910.
Shouldnt it just grab all its settings from the nds like wsreg32
withouth
having to specify any command line parameters ?
This is with the zen4 agent from zfdpatch3.
ArjanThe message appears when i try to start zwsreg. I did some messing
around
and pperantly this reg problem only appears on windows XP...
I managed to get the following on a win2k station.
Wednesday, April 23, 2003 15:43:25 -- -- Entering ZENWSREGUnreg
Wednesday, April 23, 2003 15:43:27 -- -- Entering ZENWSREGRegister
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
ZenLiteTree::ZenLiteTree()
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
ZenLiteTree::ZenLiteTree()
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
ZenLiteTree::InitZENContextIfNeeded
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
LoadZenLite
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Leaving
LoadZenLite, returning 1
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- About to
call
pZENContextInit(ptr, GEMDAN)
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Returned
from
pZENContextInit(<GEMDAN><ffff><><0>, GEMDAN, 1)
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Leaving
ZenLiteTree::InitZENContextIfNeeded, returning 0
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
ZenLiteTree::ZenLiteTree(zenContext)
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Leaving
ZenLiteTree::ZenLiteTree(zenContext)
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
NDSTree::WhoAmI()
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- WhoAmI()
returning
AMelein.
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Leaving
NDSTree::WhoAmI()
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
NDSTree::GetTreeName()
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister --
NDSTree::GetTreeName() returning GEMDAN.
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
NDSTree::GetTreeName()
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
Registrar::Register
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
Registrar::Update
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Leaving
Registrar::Update, returning 1
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
Registrar::Import
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Entering
GenerateImportDoc
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- User Tree =<GEMDAN>
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- User DN =
<AMelein.>
Wednesday, April 23, 2003 15:43:27 -- ZENWSREGRegister -- Login count
= <1>
Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- Entering
ZenLiteTree::ZenLiteTree()
Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- Entering
ZenLiteTree::ZenLiteTree()
Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- ConnType = 2
Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- Leaving
GenerateImportDoc
Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- Entering
HTTPUtil::SendMessage
Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- HTTP server
=
zenwsimport
Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- Loaded
wininet.dll
Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- About to
create an
HTTP connection.
Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- Connecting
to
server <zenwsimport> port 8039.
Wednesday, April 23, 2003 15:43:28 -- ZENWSREGRegister -- hConnect =
13369352
Wednesday, April 23, 2003 15:43:29 -- ZENWSREGRegister -- hRequest =
13369356
Wednesday, April 23, 2003 15:43:29 -- ZENWSREGRegister -- Finished
opening
request. hRequest = cc000c.
Wednesday, April 23, 2003 15:43:29 -- ZENWSREGRegister -- About to
send the
following request:
Wednesday, April 23, 2003 15:43:29 -- ZENWSREGRegister -- <?xml
version="1.0" encoding="UTF-16LE"?>
<new_ws>
<computer>AMelein</computer>
<cpu>PENTIUM 4</cpu>
<dns>AMelein</dns>
<subnet_mask>255.255.254.0</subnet_mask>
<ip>10.254.160.3</ip>
<ipx>00000002:00080217</ipx>
<mac>00:08:02:17:37:F6</mac>
<os>WIN2000 (5.0 Service Pack 3)</os>
<server>SERVER2</server>
<user_tree>GEMDAN</user_tree>
<user_dn>AMelein.</user_dn>
<login_count>1</login_count>
<auditing_version>4.0.1.4</auditing_version>
</new_ws>
Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Last error =
12029
Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Error: Kan
geen
verbinding maken met de server
Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Leaving
HTTPUtil::SendMessage, returning 12029
Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Entering
HTTPUtil::SendMessage
Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Aborting
SendMessage. Server address is empty.
Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Entering
Registrar::Import
Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Import
failed.
Error: 2
Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Leaving
Registrar::Register, returning 2
Wednesday, April 23, 2003 15:43:30 -- ZENWSREGRegister -- Leaving
ZENWSREGRegister, returning 2
Arjan
"Shaun Pond" <[email protected]> schreef in bericht
news:[email protected]...
> Arjan,
>
> so, let me understand this - if you enable logging, you get a
message
> saying you don't have rights to the registry? At what point does
this
> message appear?
>
> --
>
> Shaun Pond
> Novell Support Connection SysOp
> -
SQL Server Analysis Services (PowerPivot) instance returned the following error:
SQL Server Analysis Services (PowerPivot) instance returned the following error: Error Code: 3241607174 Description: A connection corresponding to the embedded PowerPivot data was not found in the
Excel workbook, file 'C:\Program Files\Microsoft SQL Server\MSAS10_50.POWERPIVOT\OLAP\Backup\Sandboxes\PowerPivotServiceApplication1\ReadOnlyExclusive-1096b00b-c487-46f9-afea-f717148863a8-Test_Sheet.xlsx'
Hi Have Installed power pivot to and exsistinf farm standalone farm.
What Should be the connection in the Excel fiile?
Thanks
Ravi
RaviHi,
According to your post, my understanding is that you got an error with SQL Server Analysis Services.
Did you have installed PowerPivot for Excel on a client machine and modeled a database as part of this workbook?
The refresh in question is about refreshing the embedded Analysis Services database with data retrieved from the backend sources (defined when the database was originally modeled) and resaving the updated workbook. It should not be confused
with Excel / Excel Services options to refresh the data connections in the workbook. That option is about refreshing data stored in Excel’s caches. With regards to PowerPivot, that would be refreshing from the embedded database, not the backend data from which
the database was sourced. In summary, this feature will not work against a workbook which does not have an embedded database because there is no database to refresh. This is by design and should not be interpreted as indicating that there is something wrong
with your system.
More information:
http://powerpivotgeek.com/2010/02/07/a-connection-corresponding-to-the-embedded-powerpivot-data-was-not-found-in-the-excel-workbook/
There are some similar articles for your reference.
http://technet.microsoft.com/en-us/library/ee210712(v=sql.105).aspx
http://support.microsoft.com/kb/2761246
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/a324436c-9901-494e-9f9b-314399d65ccb/data-refresh-dont-work-for-serverhealthxlsx
For the error “The data connection uses Windows Authentication and user credentials could not be delegated. The following connections failed to refresh”.
There are multiple causes for this error message. The common factor behind all of them is that Excel Services cannot get a valid Windows user identity from a claims token in SharePoint.
For more information:
http://technet.microsoft.com/en-us/library/ff487975.aspx
http://mmman.itgroove.net/2013/03/the-data-connection-uses-windows-authentication-and-user-credentials-could-not-be-delegated/
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
SharePoint returned the following error: Invalid URI: The URI is empty.
When I try to add Site Feed (News Feed) in the SharePoint 2013, I get
“SharePoint returned the following error: Invalid URI: The URI is empty. Contact your system administrator for help in resolving
this problem” error message. Could you please provide me a solution or cause of this issue?
Many Thanks.Hi Aruna
To resolve this, You have to create and configure my site i.e.
Created a new web app for my site
Created the my site host site collection as the root
Provisioned the User Profile Service App
Configured the My Site URL in Setup My Site in User Profile Service App
IISRESET
Each environment is different and unique, ULS Log viewer is the key to identify and troubleshoot this.
For more details follow the link
SharePoint 2013 Invalid URI: The URI is empty
Indul Hassan
Microsoft Community Contributor
http://www.indulhassan.com
You Snooze.. You Lose !! -
Can anyone tell me what the following error code means? 4MOT/2/40000004: BOOSTA-1235
Fans are running permanantly and this is the error I get when running apple hardware test.SNS is a sensor error. The sensors read actual temperatures at several points inside the Mac chassis to decide when things are heating up, and which fan or fans speed up to improve cooling.
Some of those sensrs are just a thermal-sensitive transistor mounted to a surface that conducts heat, and replacement does not run into big money. Disconnected wires are sometimes a possibility, especially if things were changed nearby, e.g., new heatsink. -
I have recently restored everything on my iMac after getting a new hard drive. When i try to use Elements, i get the following error code ERROR 150:30. Any ideas?
Did you use migration assistant to copy over programs, documents, and settings? You can't do that with PSE. Elements is not a tidy package in accordance with the apple developer guidelines. The installer strews stuff all of your hard drive in place the migration assistant isn't programmed to look and you can never hope to find all h the bits. You must always install PSE from scratch on a new machine. By attempting to copy it you have made a lot of trouble for yourself.
You will need to download and run this:
Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
and then you can go around and manually remove what you can reach. Look in applications, your hard drive>library>application support>adobe, your username>library>preferences. In the user library also delete any saved application states for PSE.
Then you can reinstall from scratch. -
Hi, I keep getting the following error code : U43M1D207 when I try to install the latest updates. Im trying to load the RAW conveyors for the Nikon D810 but so far pretty well frustrated.
Any help would be greatly received.......
Regards
AppleCan you please try the solution suggested at error code U43M1D207 ?
Thanks
Andaleeb -
I keep getting the following error code message: We could not complete your itunes store request. An unknown error occurred (-9808). Help!
Try:
iTunes Store: "An unknown error occured (-9808)" -
Hi can any one help
I keep getting the following error code when I try and down a ebook which I have purchase
Error getting License. License Server Communication Problem:
E_ACT_NOT_READY
can someone advise me what this means and how I recifty the problem to enable me to read the ebook purchase?
ThanksI am having this exact issue. I just downloaded a book and went to open it and got this exact problem.
I purchased he book through indigo/kobo edition and paid for it and immediately went to open it and am getting the same error
Error getting License. License Server Communication Problem only mine says Bad Device key after.
Not sure why someone has not answered this question yet...i am using windows 7 and this is how i always do it. Never had this problem before when purchasing a book.
i hope someone answers this soon. -
USE [PHPExtracts]
GO
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[pr_Extract_wt_569_OPTUM]') AND type in (N'P', N'PC'))
BEGIN
DROP PROCEDURE [dbo].[pr_Extract_wt_569_OPTUM]
PRINT '--- Procedure [dbo].[pr_Extract_wt_569_OPTUM] dropped ---'
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Brian Peterson>
-- Create date: <02/25/2014>
-- Description: <This Stored Procedure populates
-- staging table with Facets Member data
-- for Groups 100108,100115,105519,100398,106528,108601>
-- =============================================
CREATE PROCEDURE [dbo].[pr_Extract_wt_569_OPTUM]
AS
BEGIN
SET NOCOUNT ON;
declare @lastRunDate datetime
declare @currentRunDate datetime
-- RETRIEVE last run date
SET @lastRunDate = (select CONVERT(datetime,CHAR_CFLD1) from Extracts_Common_Table
where EXTRACT_ID=569 and SEQ_NO=1 AND DOMAIN_NAME ='LastRunDate'
AND Active=1)
-- if the @lastRunDate is null, then set the date to the default MEPE_EFF_DT
IF @lastRunDate IS NULL
SET @lastRunDate = '01-01-1920'
-- SET current run date
SET @currentRunDate = GETDATE()
PRINT @lastRunDate
PRINT @currentRunDate
-- CHECK for running on same date and exit if true
IF DATEDIFF(dayofyear, @lastRunDate, @currentRunDate) > 0
BEGIN
PRINT 'Deleting tables...'
TRUNCATE TABLE Extract_wt_569_OPTUM
PRINT 'Inserting new Current data...'
-- INSERT statements for procedure here
Insert into [dbo].[Extract_wt_569_OPTUM]
([DATESORT]
,[MEMBERNUMBER]
,[LASTNAME]
,[FIRSTNAME]
,[MIDDLENAME]
,[GENDER]
,[DOB]
,[DatePolicyEffective]
,[RELATIONTOINSURED]
,[SSN]
,[DateEffective]
,[DateExpiration]
,[SUBSCRIBER_ID]
,[ALTERNATE_ID]
,[ADDRESS1]
,[ADDRESS2]
,[ADDRESS3]
,[CITY]
,[STATE]
,[ZIP CODE]
,[TELEPHONE]
,[GROUP_NO]
,[GROUPNAME]
,[LINEOFBUSINESS]
,[PRODUCT_TYPE])
-- add wt_569 columns
-- add select here
SELECT top 1000 ---- remove top 1000 when loading
null as "DATESORT"
,convert(varchar,rtrim(sbsb.SBSB_ID)) + right('000' + rtrim(convert(varchar,meme.MEME_SFX)), 3) as "MEMBERNUMBER"
,meme.MEME_LAST_NAME as "LASTNAME"
,meme.MEME_FIRST_NAME as "FIRSTNAME"
,meme.MEME_MID_INIT as "MIDDLENAME"
,meme.MEME_SEX as "GENDER"
,replace(CONVERT(varchar(10),meme.MEME_BIRTH_DT,110),'-','') as "DOB"
,replace(CONVERT(varchar(10),meme.MEME_ORIG_EFF_DT,110),'-','') as "DatePolicyEffective"
,case
When meme.MCRL_MEME_CREL_CD = 'M' Then 18 -----Added case statement for RELATIONTOINSURED by Andrew 08/19/2014
When meme.MCRL_MEME_CREL_CD = 'O' Then 34
When meme.MCRL_MEME_CREL_CD = 'W' or meme.MCRL_MEME_CREL_CD = 'H' Then 01
When meme.MCRL_MEME_CREL_CD = 'S' or meme.MCRL_MEME_CREL_CD = 'D' Then 19
END
as "RELATIONTOINSURED"
,case when ltrim(rtrim(meme.MEME_SSN)) = '' THEN '999999999'
else ltrim(rtrim(meme.MEME_SSN)) end as "SSN"
,replace(CONVERT(varchar(10),mepe.MEPE_EFF_DT,110),'-','') as "DateEffective"
,replace(CONVERT(varchar(10),mepe.MEPE_TERM_DT,110),'-','') as "DateExpiration"
,sbsb.SBSB_ID as "SUBSCRIBER_ID"
,null as "ALTERNATE_ID"
,sbad.SBAD_ADDR1 as "ADDRESS1"
,sbad.SBAD_ADDR2 as "ADDRESS2"
,sbad.SBAD_ADDR3 as "ADDRESS3"
,sbad.SBAD_CITY as "CITY"
,sbad.SBAD_STATE as "STATE"
,sbad.SBAD_ZIP as "ZIP CODE"
,sbad.SBAD_PHONE as "TELEPHONE"
,grgr.GRGR_ID as "GROUP_NO"
,grgr.GRGR_NAME as "GROUPNAME"
,pdpd.LOBD_ID as "LINEOFBUSINESS"
,mctr.MCTR_DESC as "PRODUCT_TYPE"
-----,null as "BENEFIT_LEVEL" Dropped Benefit_Level not required
FROM [FacetsReport].[dbo].[CMC_MEME_MEMBER] meme with (NOLOCK)
JOIN [FacetsReport].[dbo].[CMC_SBSB_SUBSC] sbsb with (NOLOCK) on meme.SBSB_CK = sbsb.SBSB_CK
JOIN [FacetsReport].[dbo].[CMC_SBAD_ADDR] sbad with (NOLOCK) on meme.SBSB_CK = sbad.SBSB_CK and meme.SBAD_TYPE_MAIL = sbad.SBAD_TYPE
JOIN [FacetsReport].[dbo].[CMC_MEPE_PRCS_ELIG] mepe with (NOLOCK) on meme.MEME_CK = mepe.MEME_CK
JOIN [FacetsReport].[dbo].[CMC_GRGR_GROUP] grgr with (NOLOCK) on meme.GRGR_CK = grgr.GRGR_CK
JOIN [FacetsReport].[dbo].[CMC_PDPD_PRODUCT] pdpd with (NOLOCK) on mepe.PDPD_ID = pdpd.PDPD_ID
JOIN [FacetsReport].[dbo].[CMC_PDDS_PROD_DESC] pdds with (NOLOCK) on pdds.PDPD_ID = pdpd.PDPD_ID
JOIN [FacetsReport].[dbo].[CMC_MCTR_CD_TRANS] mctr with (NOLOCK) on mctr.MCTR_VALUE = pdds.PDDS_MCTR_BCAT
--JOIN [FacetsReport].[dbo].[CMC_CSCS_CLASS] cscs with (NOLOCK) on cscs.PDPD_ID = pdpd.PDPD_ID
WHERE mepe.MEPE_ELIG_IND = 'Y'
AND DATEDIFF(day, mepe.MEPE_EFF_DT, @StartDate) >= 0
AND DATEDIFF(day, mepe.MEPE_TERM_DT, @RunDate) <= 0
--UPDATE the run date
PRINT 'Updating LastRunDate...'
update Extracts_Common_Table set CHAR_CFLD1= @currentRunDate where EXTRACT_ID=569 and SEQ_NO=1 AND
DOMAIN_NAME ='LastRunDate' AND Active=1
END -- Same Date Run Check
END
GO
PRINT '------- Procedure [dbo].[pr_Extract_wt_569_OPTUM] Created ----------'
GRANT EXECUTE ON [dbo].[pr_Extract_wt_569_OPTUM] TO [public] AS [dbo]
GO
Message error:
Msg 102, Level 15, State 1, Procedure pr_Extract_wt_569_OPTUM, Line 71
Incorrect syntax near ')'.
Msg 137, Level 15, State 2, Procedure pr_Extract_wt_569_OPTUM, Line 118
Must declare the scalar variable "@StartDate".
------- Procedure [dbo].[pr_Extract_wt_569_OPTUM] Created ----------
Msg 15151, Level 16, State 1, Line 4
Cannot find the object 'pr_Extract_wt_569_OPTUM', because it does not exist or you do not have permission.Shouldn't @StartDate be an input parameter to the stored procedure? @RunDate also?
Example for sp with parameters:
http://www.sqlusa.com/bestpractices2008/stored-procedure-parameters/
The last error will go away upon a successful sp compile.
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
I was trying to burn a DVD from files in a burn folder. They were pictures from my Nikon camera. I can play videos and movies from the same dvd player. Thanks for any help you can offer,
Thanks for your reply:
I did find an error log related to the error code and tried all suggestions on the list of recommendations, still no luck
I definitely am running OS X10.5.8 (hopefully will be updating later on this month)
I tried several brand new discs from the same box, still no luck.
My last option is to go out and try a different brand, guess I'll go with Verbatim this time but I think I'll poke around some more before buying 20 more new discs. -
HT3728 What is the follow error code????
I have a new Time capsule that has been working ok for the last coouple of months, no problem. I'm now getting the following message when it tries to backup.
The backup disk image “/Volumes/Data/Malcolm's Computer.sparsebundle” could not be accessed (error -1).
What does it mean and how do I stop it from happening again??As you have been told in the other threads this is
SQL Developer (Not for general SQL/PLSQL questions)
Copy and Paste of text (even sourcecode) works for most users, so can you specify what
> because this wbesite doesn't work
means? -
I'm running a powershell command to add the email (AD mail) attribute to users in a specific OU. It seems to work then will bomb out with the error in the title.
I'm using a "scripting guy" command that I've altered with my specfic OU/domain information however, I'm pasting in the more "generic" version :: Get-ADUser -LDAPFilter "(!(mail=\.name*))" -resultSetSize $null -searchbase "ou=test,dc=nwtraders,dc=com"|
% {set-aduser -identity $_.distinguishedname -email ($_.samaccountname + "@nwtraders.com")}
I work for a school district and this command is being used to add the mail attribute to the student's accounts. I think about 2/3 of the students are completed but the script/command bombs and I'm not sure where or why. I've resubmitted the
command several times but I'm not sure whether it's starting from where it bombed or if it's starting again at the beginning and essentially re-doing the ones already completed.
Can someone point me in the direction of a work around or a resolution to the Get-ADUser error?
Thanks!!I don't know the error, so I can only guess there. But the LDAP syntax filter cannot be correct. Can you provide a link to the reference where "Scripting Guy" suggested this?
As written, you are retrieving all users where the mail attribute does not begin with the string ".name" (case insensitve), where "name" is not a property or attribute, but a string value. LDAP syntax clauses are in the format:
(<attributeName><operator><value>)
In your case, <operator> is "=", <attributeName> is "mail", and <value> is ".name". The "\" character is the escape character, which means to interpret the following character (the period in
this case) literally. You cannot use an attribute name on the right side of the operator (the "="), unless PowerShell has introduced some functionality I am not familiar with to expand the LDAP syntax. For example, the following does not filter
on users where the first name is the same as the last name:
(givenName=\.sn)
Instead, it filters on users where the first name is the string ".sn". Even if "\.name" was interpreted by the Get-ADUser cmdlet to be the "Name" attribute of the user, this would cause problems. "Name" is the
Relative Distinguished Name of the user (the value of the cn attribute) and it could include commas or spaces. I would expect "\.sAMAccountName" to make more sense.
Richard Mueller - MVP Directory Services -
See above.
Perhaps try the "Error -50," "-5000," "8003," "8008," or "-42023" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
iTunes: Advanced iTunes Store troubleshooting
Maybe you are looking for
-
I have a question about passing parameter from form to the report. I know how to use run_product to call a report but my question is when I pass a parameter in the run_product to the report like eg. Add_Parameter (pl_id,'count_number',TEXT_PARAMETER,
-
Unable to alter AP Invoice draft
While trying to add frieght/carriage to AP Invoice draft error come up as " tax code missing or out of date". The problem occures only for items. Tried in PL35 AND PL39 2007A.
-
Java Web Services wrapper and connection management.
We are currently evaluating the use of the SES Java web-services for a custom front end. I've downloaded the sample code and have read through the documentation but I'm confused on a few points. We will be OSSO protecting the app, so the flow I think
-
GRIR - Criteria set in OB74 - Additional rule for automatic clearing
Hi, WIth reference to the subject of this post, I would like to have advice on the commonly used criteria for the GRIR GL account. My GL master for this GRIR settings: sort key is 010: Purchase order no., which is EBELN (Tcode: OB16). Currently the s
-
i have lost my contacts icon from home screen how do i get it back on my iphone 4