Questions and discussion about using ProcessMaker: user interface, running cases & functionality
#814508
hello
i have some problem in use Exporting Report Tables with Triggers when i submit first dynaform wich contain the selected report i see this error:
Error uploading file 'C:\Windows\Temp\PMTC64E.tmp.csv' to http://localhost/sysworkflow/en/neoclas ... ces/upload:


Notice: Undefined index: ATTACH_FILE in C:\Bitnami\processmaker\apps\processmaker\htdocs\workflow\engine\methods\services\upload.php on line 33
C:\Bitnami\processmaker/apps/processmaker/htdocs/shared/sites/workflow/files/164/550/781/5b04fdef9d6a08015644164/6820068355b04fdf98bf829010617151_1.
Notice: Undefined index: ATTACH_FILE in C:\Bitnami\processmaker\apps\processmaker\htdocs\workflow\engine\methods\services\upload.php on line 121
An internal error occurred #1527053818. Please contact your system administrator for more information.

i search but really i don't know how i can solve it?
Screenshot (63).png
image of error
Screenshot (63).png (175.66 KiB) Viewed 3865 times
#814519
Post your trigger code that you are using. It looks like you are not passing the delegation index parameter or it is not in the right place. You probably forgot a parameter, but I need to see your code to know for sure. Also, which version of PM are you using?
#815885
Hi
I have same problem. I download https://wiki.processmaker.com/sites/def ... File-3.pmx to try to export table, it cant work.
Can you help to check?

Error uploading file '/tmp/PMT_STATIC_IP_UPlC15.csv' to http://192.168.1.13/sysworkflow/en/neoc ... ces/upload:
Notice: Undefined index: ATTACH_FILE in /opt/processmaker/workflow/engine/methods/services/upload.php on line 33
/opt/processmaker/shared/sites/workflow/files/373/769/000/5b8a249717f857012556679/8370667075b8a534b7d1c03058376230_1.
Notice: Undefined index: ATTACH_FILE in /opt/processmaker/workflow/engine/methods/services/upload.php on line 121
An internal error occurred #1535791947. Please contact your system administrator for more information.
#815902
According to the error message, you aren't specifying the delegation index. Are you calling this with custom code in a trigger? If so, post your trigger code.

If this error is generated by the PM interface, then explain exactly what you did that caused it to appear.
Also what version of PM are you using? What OS? Manual or Bitnami Install?
#822149
It took me a while to find the error. The ATTACH_FILE parameter is not passed correctly in PHP 5.5 and above. Try the following line which should make it compatible with all PHP versions.
Replace:
'ATTACH_FILE' => '@' . $csvFilePath
With:
'ATTACH_FILE' => (phpversion() >= "5.5") ? new CurlFile($path) : '@' . $path

Have a great day!
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]