Forum Discussion
FICO
5 years agoCommunity Manager
Issue with scenario attachments; attachment not found
Hello - looking for advice/help related to an issue with scenario attachments. we are using python to create several excel workbook files, which contain model input data. we have a set of strings (i...
FICO
5 years agoCommunity Manager
Hi,
in the first message you wrote that the failure occurs when you try to upload the file with the zero file size.
"we are finding that insightputscenattach fails (consistently) for one of the files"
but in your previous message, you show the code snippet for downloading an attachment. When you call the function insightputscenattach for the 110A file to upload it to Insight, the function should write an error message to the error stream of your application, if something unexpected happens. I need to know what kind of error you see in the log file, when you try to upload that file, such that I can forward that info to the component developer.
My understanding is, that you used the file size check, to make the decision whether you want to upload the file or not. But in your case, getfsize returns zero, so that check doesn't work, and the file doesn't get uploaded. You need to replace your file size check with the fexists function that I shared in my previous post, such that the file gets uploaded, even when getfsize would return a zero file size.
Regards
Related Content
Related Content
- 11Views0likes2Comments
