We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Python - error when changing to production mode

Hamder83
11 - Bolide

Hi 

I'm not sure what is wrong. But when I use the code in interactive, it works without errors.

When entering to production, it still works - but generate an error?

What am I doing wrong?

 

#################################
from ayx import Package
from ayx import Alteryx
import pandas as pd
from azure.servicebus import ServiceBusClient, ServiceBusMessage
import os

#connstr = "xxx"
connstr = "xxx"
queue_name = "invoicedk"
df = Alteryx.read("#1")

series = pd.Series(df['JSON'], index=df.index)

for specificationRows in series:
    with ServiceBusClient.from_connection_string(connstr) as client:
        with client.get_queue_sender(queue_name) as sender:
          
            
            single_message = ServiceBusMessage(specificationRows)
            sender.send_messages(single_message)

   

 

	Python (30)	AttributeError: 'NoneType' object has no attribute 'debug' ¶Exception ignored in: 'uamqp.c_uamqp.cMessage.__dealloc__' ¶AttributeError: 'NoneType' object has no attribute 'debug' ¶AttributeError: 'NoneType' object has no attribute 'debug' ¶Exception ignored in: 'uamqp.c_uamqp.cMessage.__dealloc__' ¶AttributeError: 'NoneType' object has no attribute 'debug' ¶AttributeError: 'NoneType' object has no attribute 'debug' ¶Exception ignored in: 'uamqp.c_uamqp.cTarget.__dealloc__' ¶AttributeError: 'NoneType' object has no attribute 'debug' ¶
	Python (30)	Error in sys.excepthook:¶¶Original exception was:¶Error in sys.excepthook:¶¶Original exception was:¶Error in sys.excepthook:¶¶Original exception was:¶Error in sys.excepthook:¶¶Original exception was:¶Error in sys.excepthook:¶¶Original exception was:¶Error in sys.excepthook:¶¶Original exception was:¶
	Designer x64	Finished running Servicebus Flow V01.yxmd in 7.2 seconds with 2 errors and 10 warnings

Hamder83_0-1667889504749.png

 

0 REPLIES 0
Labels
Top Solution Authors