Menu

#22 unable to create a change in remedy ver 7.6.04 sp5

v1.0_(example)
accepted
Ergorion
None
1
2017-06-02
2017-05-18
kamal
No

Hi Guys,

I have recently started my focus on storage automation. In that process i have to automate change creation in remedy 7.6.04 sp5. so i have started exploring the options i have. i came across with Pyars. I kind of liked it.
I have started writing basic scripts to query the forms and pull data which i require. i got basic understanding of schema,feild ids and etc. however i am struck with creating a change process.

We have two schema 1) Change Management and 2) CS:Item Affected

To create a change i need to create entries in these forms. i have created fieldValue

fieldValue = { 4 : "kamal",
2 : "kamal",
536870934 : "Storage",
8 : "short description",
536870928 : 998543100,
536870935 : "kamal_nath@email.com",
536870936 : "Storage Manager",
536870937 : "DL-Storage-ManagerOnCall@email.com",
536900120 : "4",
536900122 : "4",
536900118 : "4",
536870957 : 1495657800,
536870958 : 1495701000,
536870951 : "Leveraged",
536870938 : "Detailed description",
536870955 : "Storage Infrastructure",
536870943 : "Back Out Plan",
536870945 : "verification",
536870925 : "Maintain",
536870927 : 1,
536870920 : 0,
536870932 : 0,
536870921 : 0,
536900140 : 0,
536870917 : 0
}
entry_id = ars.CreateEntry('Change Management',fieldValue)

It throws me below error

Traceback (most recent call last):
File "C:/Users/kamal_nath/PycharmProjects/Next step/remedy.py", line 46, in <module>
entry_id = ars.CreateEntry('Change Management',fieldValue)
File "C:\Python27\lib\site-packages\pyars\erars.py", line 1130, in CreateEntry
raise ARError (self)
pyars.erars.ARError: An WARNING (0) occured: None

Process finished with exit code 1

can anyone please help me in debuging this

Thanks,
Kamal

Discussion

  • Ergorion

    Ergorion - 2017-06-02
    • status: open --> accepted
    • assigned_to: Ergorion
     
  • Ergorion

    Ergorion - 2017-06-02

    Dear Kamal!

    I have not seen a Remedy server for a couple of months... and as you do not get a hard error, it's a bit hard to tell from the distance. However, could it be that the Change form is a join form? I remember that there were constraints (inside Remedy) on when/how you could create an entry in a join form.

    Based on your description, I guess, I can rule out that you are trying to run this with 64bit under Linux?

    Hope that helps,
    Axel

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.