Posted: Sat Nov 06, 2004 9:07 pm Post subject: Duplicate variable declaration deploy error in WBI MB
Novice
Joined: 05 Nov 2003 Posts: 17 Location: Work
When deploying a bar file to the broker I receive an error message saying that a variable has been defined more than once in the current scope. The deployment fails.
The error message description is pretty clear BUT the variable declaration only exists once in the message flow ESQL. (The variable declaration is for a namespace).
The flow has been deployed successfully in the past. The changes made that require the re-deployment are pretty trivial and do not affect the variable at all.
Another developer in my team also had this error some time ago (in a different message flow). He changed the name of the variable and it deployed OK.
Has anybody seen this error before and/or have any ideas what may cause it?
Joined: 25 May 2002 Posts: 664 Location: South East London
You probably have another project open, that contains the same definition within the same broker schema. When you deploy, all code for the broker schema is deployed - even if it crosscuts against several open projects.
I am replying to my own post in case anybody else has the same problem I reported.
I verified that no other projects contained the same declaration but the problem persisted. In the error message display in the Event Log window the declarative was shown twice and then the rest of the ESQL displayed.
I then attempted to re-add the msg flow to the bar file. I now got another message telling me that the ESQL module could not be found (Function Main()).
I decided that something was corrupt in my workspace so going on advice from IBM I did the following:
Copied my project directories from the eclipse workspace to a back-up location
Deleted the projects via the toolkit, selecting the delete source option
Recreated the projects via the toolkit
Copied the ESQL & msg flow files back to their respective projects.
Hey presto, Bob's your uncle, everything now works again! But what a pain in the posterior.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum