Focal Point
DM Issue

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/1381057331/m/3217078306

May 15, 2011, 06:33 PM
ray_In_Vancouver
DM Issue
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
May 16, 2011, 03:09 PM
Clif
You can put a sleep command in the stored procedure, for example to wait 10 seconds:
sleep 10


N/A
May 16, 2011, 03:41 PM
ray_In_Vancouver
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
May 17, 2011, 09:50 AM
Clif
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.


N/A
May 17, 2011, 09:58 AM
ray_In_Vancouver
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