# Event Log: New Version Events missing

**URL:** <https://community.shotgridsoftware.com/t/event-log-new-version-events-missing/12047>\
**Category:** Pipeline Integrations\
**Tags:** fptr-webapp\
**Created:** [April 6, 2021, 8:46am UTC](https://community.shotgridsoftware.com/t/event-log-new-version-events-missing/12047 "2021-04-06T08:46:37Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mromeo](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mromeo](https://community.shotgridsoftware.com/u/mromeo)\
**Post date:** [April 6, 2021, 8:46am UTC](https://community.shotgridsoftware.com/t/event-log-new-version-events-missing/12047/1 "2021-04-06T08:46:37Z")

</div>

Hello,  
I need to trigger some actions whenever a new version is created for tasks on an asset.  
Example: do a turntable render every time a new version of the model is published.

Unfortunately the Events Log seems to register only changes to versions (_Shotgun\_Version\_Change_) and not new versions created.

I am building a demo of a product for VFX and Feature Animation that I have integrated with Shotgun and this feature is key to show the potential to the prospect clients.

Thanks,  
Marco.

---

<div class="post-metadata">

**Author:** ![mromeo](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mromeo](https://community.shotgridsoftware.com/u/mromeo)\
**Post date:** [April 6, 2021, 11:30am UTC](https://community.shotgridsoftware.com/t/event-log-new-version-events-missing/12047/2 "2021-04-06T11:30:06Z")

</div>

Hello,  
I run further tests and I can confirm that adding the Version via Shotgun UI registers the right _Shotgun\_Version\_New_ event in the log, followed by _Change_ events.  
Unfortunately, doing the same via the Python API does not produce the same effect.  
This is an excerpt of the code I am using:

> ```
> sg = shotgun_api3.Shotgun(SG_URL, script_name=SG_SCRIPT, api_key=SG_KEY)
> versionData = {"code": name, "entity": link, "project": project}
> newVersion = sg.create("Version", versionData)
> 
> ```

Will keep investigating, but it would be helpful if I could get some hints.  
Thanks,  
Marco.

---

<div class="post-metadata">

**Author:** ![mromeo](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mromeo](https://community.shotgridsoftware.com/u/mromeo)\
**Post date:** [April 6, 2021, 11:34am UTC](https://community.shotgridsoftware.com/t/event-log-new-version-events-missing/12047/3 "2021-04-06T11:34:15Z")

</div>

Just found thi spage, which mentions that I might have to create my own events to log from my application: [https://developer.shotgunsoftware.com/python-api/event\_types.html](https://developer.shotgunsoftware.com/python-api/event_types.html)

Is there any way that I could rely solely on existing Shotgun events triggered by my application?  
Thanks,  
Marco.

---

<div class="post-metadata">

**Author:** ![mmoshev](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mmoshev/32/476_2.png) [@mmoshev](https://community.shotgridsoftware.com/u/mmoshev)\
**Post date:** [April 7, 2021, 10:09am UTC](https://community.shotgridsoftware.com/t/event-log-new-version-events-missing/12047/4 "2021-04-07T10:09:33Z")

</div>

`Shotgun_Version_New` works fine here… and our versions are created from programs.  
Did not completely understand - you are saying that when you create the version programmatically, you get no event at all?

---

<div class="post-metadata">

**Author:** ![mromeo](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mromeo](https://community.shotgridsoftware.com/u/mromeo)\
**Post date:** [April 7, 2021, 12:46pm UTC](https://community.shotgridsoftware.com/t/event-log-new-version-events-missing/12047/5 "2021-04-07T12:46:07Z")

</div>

> [@mmoshev](#):
>
> programmatically, you get no event at all?

When I create the Version from the Shotgun web app I get the New and Change events.  
When I create the version using sg.create(“Version”, data) I don’t get any Event at all.

The only solution I found this far is to use sg.create(“EventLogEntry”, eventData) after sg.create(“Version”, data) is successful.

Is this the only way, or is there a way to generate the event automatically on sg.create ?

---

<div class="post-metadata">

**Author:** ![mmoshev](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mmoshev/32/476_2.png) [@mmoshev](https://community.shotgridsoftware.com/u/mmoshev)\
**Post date:** [April 7, 2021, 1:00pm UTC](https://community.shotgridsoftware.com/t/event-log-new-version-events-missing/12047/6 "2021-04-07T13:00:00Z")

</div>

I don’t think there is intended to be any difference at all between manual and automated creation.  
Could be a bug.

---

<div class="post-metadata">

**Author:** ![kporangehat](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/kporangehat/32/313_2.png) [@kporangehat](https://community.shotgridsoftware.com/u/kporangehat)\
**Post date:** [April 7, 2021, 3:01pm UTC](https://community.shotgridsoftware.com/t/event-log-new-version-events-missing/12047/7 "2021-04-07T15:01:10Z")

</div>

Are you using script-based authentication? If so, be sure you have the “Generate Events” field selected for that script.

![CleanShot 2021-04-07 at 09.59.09@2x](https://global.discourse-cdn.com/shotgunsoftware/original/2X/9/93ffd7a6057e24c9cabf185d47cedc516528b60d.png).

If it’s not selected, your script won’t generate events. This was added a long way back to help reduce the amount of events generated by active scripts where the events were not of any consequence.

cheers,  
kp

---

<div class="post-metadata">

**Author:** ![mromeo](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mromeo](https://community.shotgridsoftware.com/u/mromeo)\
**Post date:** [April 7, 2021, 3:37pm UTC](https://community.shotgridsoftware.com/t/event-log-new-version-events-missing/12047/8 "2021-04-07T15:37:34Z")

</div>

Thanks a lot Kevin!  
I guess things have changed in the past 12 years 😅

---

<div class="post-metadata">

**Author:** ![mromeo](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mromeo](https://community.shotgridsoftware.com/u/mromeo)\
**Post date:** [April 7, 2021, 5:10pm UTC](https://community.shotgridsoftware.com/t/event-log-new-version-events-missing/12047/9 "2021-04-07T17:10:19Z")

</div>

I confirm everything works properly.  
Thanks again!

---

<div class="post-metadata">

**Author:** ![mmoshev](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mmoshev/32/476_2.png) [@mmoshev](https://community.shotgridsoftware.com/u/mmoshev)\
**Post date:** [April 8, 2021, 6:45am UTC](https://community.shotgridsoftware.com/t/event-log-new-version-events-missing/12047/10 "2021-04-08T06:45:51Z")

</div>

Oh cool, did not realize that existed!
