Is it possible to get the GE01 using mapping

26 views
Skip to first unread message

David Friday

unread,
Apr 29, 2025, 11:06:12 PMApr 29
to Bots Open Source EDI Translator
Hi,

The error I receive is
invalid syntax (NavistarITRE-210ToSentMap.py, line 7)

my map shown below:

def main(inn,out):
    out.data.header={}
    gecount = inn.ta_info['bots_accessenvelope'].children[0].get({'BOTSID':'ISA'}{'BOTSID':'GS'},,{'BOTSID':'GE','GE01':None})
    out.data.header['TOTALINVOICES'] = gecount

    out.data.lines=[]
    for lin in inn.getloop({'BOTSID':'ST'}):
        out.data.lines.append({})
        out.data.lines[-1]['EDIDocument']=lin.get({'BOTSID':'ST','ST01':None})
        out.data.lines[-1]['ControlID']=lin.get({'BOTSID':'ST','ST02':None})

Thanks for any help,

David

 

Henk-Jan Ebbers

unread,
Apr 30, 2025, 5:48:00 AMApr 30
to bots...@googlegroups.com
invalid syntax is a python warning. So think you should fix invalid syntax first?
(do I see a double comma in that line?)
kind regards, henk-jan ebbers


--
You received this message because you are subscribed to the Google Groups "Bots Open Source EDI Translator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/botsmail/b7598443-098d-431a-addd-0b4bc254bb2en%40googlegroups.com.

David Friday

unread,
Apr 30, 2025, 7:04:24 AMApr 30
to Bots Open Source EDI Translator
Thanks I corrected the line below:

    gecount = inn.ta_info['bots_accessenvelope'].children[0].children[0].get({'BOTSID':'GS'},{'BOTSID':'GE','GE01':None})

All good now have a great day.

John Freeman

unread,
Apr 30, 2025, 8:30:50 AMApr 30
to Bots Open Source EDI Translator
I was able to find one INV-00398


John Freeman

Lead TP Analyst/IT Programmer

Petra Industries, LLC

405 216-2100, ext. 5607


From: bots...@googlegroups.com <bots...@googlegroups.com> on behalf of David Friday <excite...@gmail.com>
Sent: Wednesday, April 30, 2025 6:04 AM
To: Bots Open Source EDI Translator <bots...@googlegroups.com>
Subject: [EXTERNAL]-Re: [Bots Open Source EDI Translator] Is it possible to get the GE01 using mapping
 
Reply all
Reply to author
Forward
0 new messages