Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Go
New
Search
Notify
Tools
Reply
  
DM Issue
 Login/Join
 
Gold member
posted
2011/05/15 06:44:57 (ICM18076) Request: "ultiprovineyarddata/importvineyarddata" - finished processing ultiprovineyarddata importvineyarddata 20110515064456_c8af0df6
2011/05/15 06:44:57 (ICM18007) CPU Time : 156 ultiprovineyarddata importvineyarddata 20110515064456_c8af0df6
2011/05/15 06:44:57 (ICM18015) DEP_2: procedure renamefile started. ultiprovineyarddata importvineyarddata 20110515064456_c8af0df6

2011/05/15 06:44:57 The process cannot access the file because it is being used by another process. ultiprovineyarddata importvineyarddata 20110515064456_c8af0df6

2011/05/15 06:44:57 (ICM18039) DEP_2 renamefile Return Code = 0 ultiprovineyarddata importvineyarddata 20110515064456_c8af0df6
2011/05/15 06:44:57 (ICM18039) DEP_0 EDAMAIL Return Code = 0 ultiprovineyarddata importvineyarddata 20110515064456_c8af0df6
2011/05/15 06:44:57 (ICM18031) Finished ultiprovineyarddata importvineyarddata 20110515064456_c8af0df6
2011/05/15 06:44:57 (ICM18072) Elapsed run time 0:00:01 ultiprovineyarddata importvineyarddata 20110515064456_c8af0df6
2011/05/15 06:44:57 (ICM18975) ------ End of Log Record for ultiprovineyarddata/importvineyarddata ------ ultiprovineyarddata importvineyarddata 20110515064456_c8af0df6

heres what i am doing.

I have a data flow (ODBC) to an excel spread sheet that comes in every night. After the Data flow runs i try to Rename the Spreadsheet because there will be another with the same name placed in the same folder so i always get the new data.

When the rename SP runs it errors out. The SP runs if I run it manualy.

Is there a way to put a wait befor the SP call to make the spreadsheet is free.


IWay SM 5.6, 6.01, 6.1, 6.9, 7.0
EDI, XML, XSD, WF 8.0, DM 77,8.0 asp.net, SQL Server
 
Posts: 85 | Registered: February 27, 2009Reply With QuoteReport This Post
Guru
posted Hide Post
You can put a sleep command in the stored procedure, for example to wait 10 seconds:
sleep 10
 
Posts: 380 | Location: New York City | Registered: May 03, 2007Reply With QuoteReport This Post
Gold member
posted Hide Post
Thanks clif,

Is it a problem that they are running on the same process?

This message has been edited. Last edited by: ray_In_Vancouver,


IWay SM 5.6, 6.01, 6.1, 6.9, 7.0
EDI, XML, XSD, WF 8.0, DM 77,8.0 asp.net, SQL Server
 
Posts: 85 | Registered: February 27, 2009Reply With QuoteReport This Post
Guru
posted Hide Post
If you put the sleep command in the same procedure as the rename then they are indeed running in the same process. It just waits for the specified number of seconds before proceeding. So if it's just a timing issue that should work.
 
Posts: 380 | Location: New York City | Registered: May 03, 2007Reply With QuoteReport This Post
Gold member
posted Hide Post
i believe it is being locked by the process so even after the Data Load then the Sleep it is still locked. Goin to try running another process after the load.


IWay SM 5.6, 6.01, 6.1, 6.9, 7.0
EDI, XML, XSD, WF 8.0, DM 77,8.0 asp.net, SQL Server
 
Posts: 85 | Registered: February 27, 2009Reply With QuoteReport This Post
  Powered by Social Strata  
 


Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.