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