Book a Demo

Author Topic: How does ImportRASAsset() work?  (Read 2994 times)

B3nutzer

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
How does ImportRASAsset() work?
« on: June 20, 2023, 10:58:45 pm »
Greetings,

I have a question regarding the the function "ImportRASAsset" from the Automation API.

The new 64bit flavour of EA solved the OutOfMemory errors when using the Reusable Asset Service (RAS) with large amounts of data. So we set up a project for sharing elements, diagrams and scripts over the RAS. This works fine when using the GUI, connecting to the RAS Server and Importing an asset from a storage.



Preferably the RAS should run on all our projects regularly and without user interaction. When trying to automate this, we used the command "ImportRASAsset":

Code: [Select]
pack = Repository.GetTreeSelectedObject();
Repository.ImportRASAsset(pack.PackageGUID, "https", "TheServer", "TheDatabase" ,"TheStorage", "{2F4C2486-B8CD-4b2b-A381-30BA9EF575FF}", "", "1.0" );

But it returns a 404 error from the Pro Cloud Server:
Code: [Select]
Pro Cloud Server: The webservice is currently unavailable
Pro Cloud Server: Http Status Code: 404 Not Found

Does anybody know if my parameters are wrong or wether the RAS Model must be configured in a specific way on the Pro Cloud Server?

Any hints would be greatly appreciated.