cubewise-code / tm1py-samples

Do more with TM1 with these ready to use TM1py samples.
https://github.com/cubewise-code/TM1py
MIT License
59 stars 45 forks source link

chores #24

Closed abhijit2813 closed 6 years ago

abhijit2813 commented 6 years ago

After executing below code

Read Chore:

c = tm1.chores.get('aaa')

# Print out the tasks
for task in c.tasks:
    print("Process: {} Parameters: {}".format(task, task.parameters))

I am facing error as Text: {"error":{"code":"","message":"'Chores' resource can not be resolved on type 'EntityContainer'."}} Status Code: 404 Reason: Not Found

how to resolve it? Thanks in advance

MariusWirtz commented 6 years ago

What’s your version of TM1 / Planning Analytics?

On Mon, 16 Jul 2018 at 10:04, abhijit2813 notifications@github.com wrote:

After executing below code

Read Chore:

c = tm1.chores.get('aaa')

Print out the tasks

for task in c.tasks: print("Process: {} Parameters: {}".format(task, task.parameters))

I am facing error as Text: {"error":{"code":"","message":"'Chores' resource can not be resolved on type 'EntityContainer'."}} Status Code: 404 Reason: Not Found

how to resolve it? Thanks in advance

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cubewise-code/TM1py-samples/issues/24, or mute the thread https://github.com/notifications/unsubscribe-auth/AOepM1rHJOZgblpTQ6uKyzcBbo9Lrz5_ks5uHEkjgaJpZM4VQtce .

abhijit2813 commented 6 years ago

TM1 10.2.2

MariusWirtz commented 6 years ago

Fixpack?

On Mon, 16 Jul 2018 at 11:37, abhijit2813 notifications@github.com wrote:

TM1 10.2.2

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/cubewise-code/TM1py-samples/issues/24#issuecomment-405194582, or mute the thread https://github.com/notifications/unsubscribe-auth/AOepM7BvSNRlN5y5rj0us3TdtgAmGEbGks5uHF7ugaJpZM4VQtce .

MariusWirtz commented 6 years ago

https://code.cubewise.com/blog/determine-the-version-of-ibm-planning-analytics

abhijit2813 commented 6 years ago

10.2.20000.50159

MariusWirtz commented 6 years ago

Version is too old. REST API in that version is very limited.

You need to have 10.2.2 FP 5 or higher.

On Mon, 16 Jul 2018 at 12:11, abhijit2813 notifications@github.com wrote:

10.2.20000.50159

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/cubewise-code/TM1py-samples/issues/24#issuecomment-405202565, or mute the thread https://github.com/notifications/unsubscribe-auth/AOepMxRYHwxovR9l4xGGoP87Hlxa7hYvks5uHGbpgaJpZM4VQtce .

abhijit2813 commented 6 years ago

Ok I am downloading FP5 fixpack and then I will checks once again thanks Marius for your prompt support.

MariusWirtz commented 6 years ago

Maybe upgrade to FP7. Then you can use all features of TM1py.

Sent from my iPhone

On 16 Jul 2018, at 13:33, abhijit2813 notifications@github.com wrote:

Ok I am downloading FP5 fixpack and then I will checks once again thanks Marius for your prompt support.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.