Forum Discussion

FICO's avatar
FICO
Community Manager
5 years ago

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.e. setA), and each element of setA should have a corresponding excel file. then, we iterate over setA and use insightputscenattach to upload each attachment.

we are finding that insightputscenattach fails (consistently) for one of the files. in mosel, we use getfsize to check to see if the file exist (e.g. has a non-0 size).

file size is shown as 0 for one of the attachments that we want to upload. thus, insightputscenattach would fail.

from python, we can read the file and we see that the file exists, has data, and therefore the size is not 0.

Bottom line: python is indicating the the files/attachments are fine (exist, and have a non-0 size). mosel is indicating that one of the files/attachments does not exist. We are unable to diagnose the issue, and thus unable to resolve the issue with the attachment.

Gary

18 Replies