cancel
Showing results for 
Search instead for 
Did you mean: 

Attachment via B1if " Source file does not exist "

n007praveen71
Participant
0 Kudos

Hi Friends,

Im trying to insert a jpg file into the ATC1 table via B1if scenario and used the B1 object atom with object id = 221

but when i try to insert a source file with path i get an error like this:

com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception:
com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception:
java.lang.RuntimeException: DI Error: (-5002) Source file does not exist  , 'D:\pk\blue.jpg'-The di call #1 did fail.

I checked the path many times the source path is correct .still it shows that source file does not exist.

i tried changing the path to C: drive as well still the same error.

my target path is a B1share folder "\\testsrv\B1_SHR\Attachment".

what am i missing guys pls help! i need to insert and update the ATC1 table via B1if for attachment entry through Webservice.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

PierreBrothier
Contributor

Hi Praveen,

what is the user that runs the b1iF service and DI Proxy service ? Perhaps it has not rights to get the file ?

i've made a try and it works as soon as I changed the DI Proxy service user

n007praveen71
Participant
0 Kudos

Hello PIERRE BROTHIER,

Thanks for your reply, My B1if user is B1iadmin and I'm not sure about the DI proxy service user. Can you please explain more about how to change the user as you mentioned?. And also I gave full rights to the file for easy accessing.

PierreBrothier
Contributor
0 Kudos

Hi,

Just as Lenice told you, go to services, right click and look at the connexion tab.

I've specified a windows user that have administrator rights

n007praveen71
Participant
0 Kudos

Hi,

I tried changing the user as per the instruction and im still getting the same error i have attached my debug error xml pls check and help me out .indocretriever.xml

PierreBrothier
Contributor

Hi,

i've made a simple process step :

  • the file is located on my B1i server
  • no inbound

I've looked at you xml file, here's what i understand :

You create a web service step to insert attachment.

Where is the file you try to attach ? On your computer ?

If yes, that's why b1iF can't find the file. am I wrong ?

You should rather :

  • pass the binary content of the file in the service payload
  • write the data (Upload to file system Atom)
  • insert with DI Atom

Answers (1)

Answers (1)

zucan18
Participant

Hi Praveen,

Regarding DI Proxy service user, you need to go to Services -> Right click on di proxy -> Properties -> Logon tab, then check if the user has the rights.

Best Regards

Lenice Zhang

n007praveen71
Participant
0 Kudos

Thank you zucan18, I Tried as per your instruction and im still getting the same error