Wild guess--you mean you needed your 2017 AGI and you got a transcript from the IRS showing that amount? But it still won't e-file successfully? If you filed your 2017 return late or amended, then even if the AGI is on your transcript it might not be in the system, so you still will not be able to e-file. If it is rejected using the AGI on your transcript, try using zero. If zero does not work either, then print it, sign it and mail it.
When you mail a tax return, you need to attach any documents showing tax withheld, such as your W-2’s or any 1099’s. Use a mailing service that will track it, such as UPS or certified mail so you will know the IRS and/or your state received the return.